﻿using PLCS.Application.Contracts.HisOrderApp.Dtos;
using PLCS.Application.Contracts.HisTaskApp.Dtos;
using PLCS.Domain.Orders;

namespace PLCS.Application.Contracts.HisOrderApp;

public interface IHisOrderAppService : ICrudAppService<HisOrderDto, Guid, PagedResultRequestDto, HisOrderEditDto>
{
    /// <summary>
    /// 根据工单号获取工单
    /// </summary>
    /// <param name="orderNo">工单号</param>
    /// <returns></returns>
    Task<HisOrderDto> GetByOrderNoAsync(string orderNo);

    /// <summary>
    /// 获取所有列表
    /// </summary>
    /// <param name="param"></param>
    /// <returns></returns>
    Task<PagedResultDto<HisOrderDto>> GetListBySearchAsync(PagedResultRequestDto input, string? orderNo, string? startTime, string? endTime);
}